﻿package  
{
	
	/**
	 * ...标准的单例可以扩展,所以不要定义成final类
	 * @author chancidal
	 */
	public class MyClass 
	{
		//
		private static var m_instance:MyClass;
		//
		public function MyClass() 
		{
			
		}
		public static function getInstance():MyClass {
			if (!m_instance) {
				m_instance = new MyClass();
			}
			return m_instance;
		}
		public function sayHello():void {
			trace("hello,world");
		}
	}
	
}